numbers1 = [1, 2, 3]
numbers2 = numbers1[:]

print(numbers1)  # 输出：[1, 2, 3]
print(numbers2)  # 输出：[1, 2, 3]
numbers2[0] = 4

print(numbers1)  # 输出：[4, 2, 3]
print(numbers2)  # 输出：[4, 2, 3]

# 导入copy模块
import copy

numbers1 = [1, 2, 3]
numbers2 = copy.deepcopy(numbers1)

print(numbers1)  # 输出：[1, 2, 3]
print(numbers2)  # 输出：[1, 2, 3]

numbers2[0] = 4

print(numbers1)  # 输出：[1, 2, 3]
print(numbers2)  # 输出：[4, 2, 3]
